package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.enums.BooleanEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 喂养方案信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class SystemFeedingProgramInsertRequestDTO extends BaseRequestDTO {

    /**
     * 名称
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "方案名称",required = true)
    private String name;

    /**
     * 开始月龄（月）
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "开始月龄（月）",required = true)
    private Integer beginMonth;

    /**
     * 开始月龄（天）
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "开始月龄（天）",required = true)
    private Integer beginDays;

    /**
     * 结束月龄（月）
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "结束月龄（月）",required = true)
    private Integer endMonth;

    /**
     * 结束月龄（天）
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "结束月龄（天）",required = true)
    private Integer endDays;

    /**
     * 备注
     *
     * @mbggenerated
     */
    @ApiParam(value = "备注",required = false)
    private String remark;

    /**
     * 状态（备用字段，用于控制是否展示）
     *
     * @mbggenerated
     */
    @ApiParam(value = "状态（备用字段，用于控制是否展示）",required = false,hidden = true)
    private BooleanEnums states = BooleanEnums.T;

    /**
     * 内容
     *
     * @mbggenerated
     */
    private String content;

    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
